package org.stvd.core.jdbc.log;

import org.stvd.core.jdbc.DbUtil;
import org.stvd.core.util.DateUtil;

public class LogManager {
    public static void insert(String userId, String ip, String url, String classz, String method, String level, String message) {
        Object[] parameters = { userId, ip, url, DateUtil.getSystemDate(), classz, method, level, message };
        DbUtil.execute("INSERT INTO LOGS(USER_ID,IP,URL,CDATE,LOGGER,METHOD,LEVEL,MESSAGE) "
                + "VALUES(?,?,?,?,?,?,?,?)", parameters);
    }
}